﻿using System;
using Oxage.Common;

namespace Oxage.Printing.Models
{
	public partial class PaperFormat : ModelBase
	{
		#region Public properties
		public string Name
		{
			get
			{
				return this.name;
			}
			set
			{
				if (this.name != value)
				{
					this.name = value;
					OnPropertyChanged("Name");
				}
			}
		}
		private string name;

		public double Width
		{
			get
			{
				return this.width;
			}
			set
			{
				if (this.width != value)
				{
					this.width = value;
					OnPropertyChanged("Width");
				}
			}
		}
		private double width;

		public double Height
		{
			get
			{
				return this.height;
			}
			set
			{
				if (this.height != value)
				{
					this.height = value;
					OnPropertyChanged("Height");
				}
			}
		}
		private double height;

		public bool IsCustom
		{
			get
			{
				return this.isCustom;
			}
			set
			{
				if (this.isCustom != value)
				{
					this.isCustom = value;
					OnPropertyChanged("IsCustom");
				}
			}
		}
		private bool isCustom;
		#endregion

		#region Public methods
		public override string ToString()
		{
			return this.Name;
		}
		#endregion
	}
}
